package com.zscat.mallplus.oms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zscat.mallplus.oms.entity.OmsOrderItem;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 订单中所包含的商品 Mapper 接口
 * </p>
 *
 * @author zscat
 * @since 2019-04-17
 */
public interface OmsOrderItemMapper extends BaseMapper<OmsOrderItem> {

	List<OmsOrderItem> selectOrderItemByOrderId(Long orderId);

	Integer countProductQuantity(@Param("memberId") Long memberId, @Param("orderType") Integer orderType,
			@Param("flashPromotionProductRelationId") Long flashPromotionProductRelationId);
}
